<%@ page pageEncoding="utf-8" %>
<%@ include file="/header.jsp" %>

<script type="text/javascript" src="js/validation-framework.js"></script>
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>

<div align="center">请输入留言</div>
<div align="center"><a href="<%=context %>/getMessage">查看留言</a></div>
<form id="form1" name="form1" method="post" action="${ctx}/addMessage" onsubmit="return doValidate(this)">
  <div align="center"><table width="530" border="1">
    <tr>
      <td>姓名：</td>
      <td><label>
        <input name="name" type="text" id="name" size="40" />
      </label></td>
    </tr>
    <tr>
      <td>Email：</td> 
      <td><label>
        <input name="Email" type="text" id="Email" size="40" />
      </label></td>
    </tr>
    <tr>
      <td>电话：</td>
      <td><label>
        <input name="phone" type="text" id="phone" size="40" />
      </label></td>
    </tr>
    <tr>
      <td>主题：</td>
      <td><label>
        <input name="title" type="text" id="title" size="40" />
      </label></td>
    </tr>
    <tr>
      <td>内容：</td>
      <td><label>
      <script>
      	var editor= new FCKeditor('content');
      	editor.BasePath='${ctx}/fckeditor/';
      	editor.Height=200;
      	editor.ToolbarSet='Basic';
      	editor.Create();
      </script>
      </label></td> 
    </tr>
    <tr>
      <td><label>
        <input type="submit" name="button" id="button" value="提交" />
      </label></td>
      <td><label>
        <input type="reset" name="button2" id="button2" value="重置" />
      </label></td>
    </tr>
  </table></div>
</form>

<%@ include file="/footer.htm" %>
